<div class="eavFields form">
<?php echo $form->create('EavField');?>
	<fieldset>
 		<legend><?php __('Edit EavField');?></legend>
	<?php
	if(is_array($this->data['EavField']['options']) && !empty($this->data['EavField']['options']))
	{
		$value = implode('',$this->data['EavField']['options']);
	}
		echo $form->input('id');
		echo $form->input('name');
		echo $form->input('label');
		echo $form->input('type');
		echo $form->input('params');
		echo $form->input('required');
		echo $form->input('value');
		echo $form->input('tooltip');
		echo $form->input('options',array('value'=>$value));
		echo $form->input('order');
		echo $form->input('entity');
	?>
	</fieldset>
<?php echo $form->end(__('Submit'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete', true), array('action'=>'delete', $form->value('EavField.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('EavField.id'))); ?></li>
		<li><?php echo $html->link(__('List EavFields', true), array('action'=>'index'));?></li>
		<li><?php echo $html->link(__('List Eav Values', true), array('controller'=> 'eav_values', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New Eav Value', true), array('controller'=> 'eav_values', 'action'=>'add')); ?> </li>
	</ul>
</div>
